package com.adopapa.nezhacloud.authc.domain;

import com.adopapa.nezhacloud.ddd.codegen.CodeGen;
import com.adopapa.nezhacloud.ddd.domain.BaseUuidEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.*;
import org.springframework.util.ObjectUtils;

import java.time.Instant;
import java.util.HashMap;
import java.util.Map;


import java.time.Instant;
import java.util.HashMap;
import java.util.Map;

import org.springframework.util.ObjectUtils;

import com.adopapa.nezhacloud.ddd.codegen.CodeGen;
import com.adopapa.nezhacloud.ddd.domain.BaseUuidEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.Lob;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;

@Entity
@Table(name = "AUTHC_ADDRESSES")
public class AddressInfo extends BaseUuidEntity {



    @CodeGen(query = "=", form = true, unique = true, required = true, label = "用户名称")
    @Column(name = "LOGIN_NAME")
    private String loginName;
    @CodeGen(form = true, required = true, label = "用户密码")
    @Column(name = "LOGIN_PWD")
    private String loginPwd;
    @CodeGen(query = "%", form = true, required = true, label = "姓名")
    @Column(name = "USER_NAME")
    private String userName;
    @CodeGen(form = true, label = "备注")
    @Lob
    @Column(name = "REMARK")
    private String remark;


    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "AddressInfo{" +
                "loginName='" + loginName + '\'' +
                ", loginPwd='" + loginPwd + '\'' +
                ", userName='" + userName + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
